package com.ruoyi.ziran.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 自然灾害题库对象 zr_question_bank
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
@Data
public class ZrQuestionBank extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 题目 */
    @Excel(name = "题目")
    private String title;

    /** 答案 */
    @Excel(name = "答案")
    private String answer;

    /** 文件 */
    @Excel(name = "文件")
    private String files;

    /** 1单选，2多选，3填空，4判断 */
    @Excel(name = "1单选，2多选，3填空，4判断")
    private Long type;

    /** 题目分类（zr_disaster_type表id） */
    @Excel(name = "题目分类", readConverterExp = "z=r_disaster_type表id")
    private Long disasterTypeId;
    @TableField(exist = false)
    private String typeName;
    @TableField(exist = false)
    private List<ZrQuestionBankItem> list;
    /**
     * 试卷id
     */
    @TableField(exist = false)
    private Long paperId;
}
